<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>外贸合同</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <input type="checkbox" name="autoChapter" id="autoChapter" lay-filter="autoChapter" lay-skin="primary" title="盖上印章" checked/>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="javascript:window.print()"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdf"><i class="fa fa-file-pdf-o"></i> 导出PDF</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdfBatch"><i class="fa fa-file-pdf-o"></i> 一键三导</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdfMerge"><i class="fa fa-file-pdf-o"></i> 合并导出</button>
    </div>
    <div class="main">
        <div class="page-break">
            <div id="conTempView"></div>
        </div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <div class="head">
        <div class="title18">{{d.main.sellerName}}</div>
        <div class="title18">{{d.main.sellerNameEn}}</div>
        <div class="title12">{{d.main.sellerAddress}}</div>
        <div class="title12">{{d.main.sellerAddressEn}}</div>
        <div class="title12">电话：<span style="min-width: 100px;display: inline-block">{{d.main.sellerTel}}&nbsp;</span>  传真：<span style="min-width: 100px;display: inline-block">{{d.main.sellerFax}}&nbsp;</span></div>
        <div class="title22">发票</div>
        <div class="title22">INVOICE</div>
        <hr/>
    </div>
    <table style="width: 100%">
        <tr>
            <td width="90">Invoice No：</td>
            <td width="40%">{{d.main.contrNo}}</td>
            <td width="90">Invoice Date：</td>
            <td>{{d.main.invoiceDate}}</td>
        </tr>
        <tr>
            <td>Invoice To：</td>
            <td>{{d.main.buyerName}}</td>
            <td>Ship To：</td>
            <td>{{d.main.ownerName}} ({{d.main.ownerCode}})</td>
        </tr>
    </table>
    <div class="printArea" style="margin-bottom: 8px;margin-top: 10px;">
        <table>
            <thead>
            <tr>
                <th>行号No.</th>
                <th>品名Name</th>
                <th>品牌Brand</th>
                <th>型号Model</th>
                <th>数量Quantity</th>
                <th>单位Unit</th>
                <th>单价Price</th>
                <th>总价Amount</th>
                <th>币制Currency</th>
            </tr>
            </thead>
            <tbody>
            {{# $.each(d.members,function(i,o){}}
            <tr>
                <td style="text-align: center">{{i+1}}</td>
                <td>{{o.name}}</td>
                <td>{{o.brand}}</td>
                <td>{{o.model}}</td>
                <td style="text-align: right">{{formatCurrency(o.quantity)}}</td>
                <td style="text-align: center">{{o.unitName}}</td>
                <td style="text-align: right">{{o.unitPrice}}</td>
                <td style="text-align: right">{{formatCurrency(o.totalPrice)}}</td>
                <td style="text-align: center">{{o.currencyName}}</td>
            </tr>
            {{#});}}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="4">合计 Total：</td>
                <td style="text-align: right">{{formatCurrency(d.tquantity)}}</td>
                <td></td>
                <td></td>
                <td style="text-align: right">{{formatCurrency(d.ttotalPrice)}}</td>
                <td>&nbsp;</td>
            </tr>
            </tfoot>
        </table>
    </div>
    <div style="position: absolute;width: 98%;overflow: hidden;height: 160px;">
        <table style="width: 100%;position: inherit;z-index: 10">
            <tr>
                <td height="70">&nbsp;</td>
                <td align="center" width="200" style="border-bottom: 1px #000000 solid;">
                    <div style="margin-bottom:50px; width: 120px">For and on behalf of</div>
                </td>
            </tr>
            <tr>
                <td height="40">&nbsp;</td>
                <td align="center" width="200"><div style="">Authorized Signature</div></td>
            </tr>
        </table>
        {{# if(!isEmpty(d.main.sellerChapter)){}}
        <div class="chapter2 chapterArea" id="sellerChapter" style="position: inherit;z-index: -1;top: 0px;right: 40px;"><img src="{{d.main.sellerChapter}}"></div>
        {{#}}}
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/customs/declaration/imp/print-invoice.js?v=202001010102"></script>
</body>
</html>